<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="phoneRechargeCss" jsFile="flowRechargeJs" current="流量充值">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>编辑流量充值
                    <small>编辑流量充值页面</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">编辑流量充值信息</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        基本信息</div>
                </div>
                <div class="portlet-body form edit-form">
                    <form action="javascript:;" class="horizontal-form createform" id="flowRechargeForm" >
                            <input type="hidden" id="id"  name="id" value="${mOperatorFlowInfoVO.id}">  
                            <div class="form-body">
	                            <div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过! 
	                            </div>
                                <div class="row">
                            	<div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">运营商</label>
                                        	<div class="input-group-content">
				                                <input type="text" class="form-control" placeholder="运营商" name="serviceProvier" value="${mOperatorFlowInfoVO.mtc_name}" readonly="readonly">
			                                </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">省市</label>
                                            <div class="input-group-content">
				                                <input type="text" class="form-control" placeholder="省市" name="province" value="${mOperatorFlowInfoVO.province_name}" readonly="readonly">
                                        	</div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">标准价格</label>
                                            <div class="input-group-content">
                                                  <input type="text" class="form-control" placeholder="标准价格" name="value" value="${mOperatorFlowInfoVO.mtc_price}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">增值价格</label>
                                            <div class="input-group-content">
                                                  <input type="text" class="form-control" placeholder="增值价格" name="sellPrice" value="${mOperatorFlowInfoVO.price}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">状态</label>
                                            <div class="input-group-content">
                                            	<select class="form-control input-inline" name="status" >
				                                    <option value="">请选择</option>
				                                    <option value="available" <#if mOperatorFlowInfoVO.status == "available">selected="selected"</#if>>有效</option>
				                                     <option value="invalid" <#if mOperatorFlowInfoVO.status == "invalid">selected="selected"</#if>>无效</option>                       
				                                </select> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">接入商</label>
                                        	<div class="input-group-content">
				                                <input type="text" class="form-control" placeholder="运营商" name="business_name" value="${mOperatorFlowInfoVO.business_name}" readonly="readonly">
			                                </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-actions top">
                                <div class="row">
                                    <div class="col-md-offset-5 col-md-7">
                                       <#if view !='toView'>
                                         <button type="submit" class="btn green" id="flowRechargeSave">保存</button>
                                        </#if>
                                        <a href="${context}/operator_flow_info/operator_flow_view_index" class="btn default">返回</a>
                                    </div>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>